-- GENERATED SPELL FOR [Fenissa the Assassin] --


function spell0_22060(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(38863,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22060', 4264, 1)
end

function spell1_22060(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(14873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22060', 613, 1)
end

function spell2_22060(pUnit, Event) --@Stealth,Self--
pUnit:FullCastSpellOnTarget(34189,pUnit)
pUnit:RegisterEvent('Sorts_22060', 590, 1)
end

function Sorts_22060(pUnit, Event)
local choix_sorts_22060 = math.random(0, 2)
if choix_sorts_22060 == 0 then
pUnit:RegisterEvent('spell0_22060', 1, 1)
end
if choix_sorts_22060 == 1 then
pUnit:RegisterEvent('spell1_22060', 1, 1)
end
if choix_sorts_22060 == 2 then
pUnit:RegisterEvent('spell2_22060', 1, 1)
end
end

function mob22060_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22060', math.random(1500, 3000), 1)
end

function mob22060_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22060_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22060_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22060, 1, 'mob22060_Action')
RegisterUnitEvent(22060, 2, 'mob22060_Leave')
RegisterUnitEvent(22060, 3, 'mob22060_Kill')
RegisterUnitEvent(22060, 4, 'mob22060_Die')
